<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" content="text/html;charset=utf-8">
	<title>教室管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css" media="all" />
    <link rel="stylesheet" href="../../css/leftnav.css" media="all" />

<!--	<script src="../../layui/layui.all.js"></script>-->
<!--    <script src="../../layui/lay/modules/laytpl.js"></script>-->

</head>
<body class="childrenBody">
	<div class="layui-col-md2" style="width:200px"><!--学校导航-->
		<div style="background-color:#eeeeee;line-height: 40px;text-align: center; height: 40px;font-size: small;">学校导航</div>
		<!--学校教学楼导航栏开始-->
		<div style='border:0px;padding:3px; PADDING:0px; width:200px; height:685px; LINE-HEIGHT: 20px; overflow-y: auto; overflow-x: hidden;'>
			<div class="nav">
				<ul id="aat" lay-filter="demo"></ul>
			</div>
		</div>
		<!--学校教学楼导航栏结束-->
	</div>
	<div class="layui-col-md7">
		<!--查询和工具栏开始-->
		<form class="layui-form " action="" method="post" id="searchFrm" lay-filter="searchFrm">

			<div class="layui-inline" >
				<button type="button" class="layui-btn layui-btn-normal add_btn" id="add_btn" lay-filter="add_btn"><i class="layui-icon" padding-left="80px">&#xe608;</i>添加</button>
			</div>
		</form>
		<!--查询和工具栏结束-->
	<br><!--yw 分隔-->
		<table id="list" lay-filter="list"></table><!--yw 显示列表数据-->
		<!--行工具条-->
		<div id="listRowBar" style="display:none;">
			<a><i class="layui-icon" lay-event="edit">&#xe642;</i></a>
			<a><i class="layui-icon" lay-event="del">&#xe640;</i></a>
		</div>
	</div>
<!--数据表格结束-->

<!-- 添加教室弹出层开始-->
<div style="display:none;padding:10px" id="addDiv">
	<form action="" method="post" class="layui-form" id="dataFrm" lay-filter="dataFrm">
		
		
		<div class="layui-form-item">
			<label class="layui-form-label">学校</label>
			<div class="layui-input-block">
				<select name="schoolId" lay-filter="schoolId" id="schoolId">
					<option value=""></option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">教学楼</label>
			<div class="layui-input-block">
				<select name="tbuildName" id="tbuildName">
					<option value=""></option>
				</select>
			</div>
		</div>
		
		
		<!-- <div class="layui-form-item">
		    <label class="layui-form-label"><span style="color:red;">*</span>教学楼ID</label>
		    <div class="layui-input-block">
		        <input type="text" name="tbuildid" autocomplete="off" class="layui-input" id="tbuildid" lay-verify="required">
		    </div>
		</div> -->
        <!-- <div class="layui-form-item">
            <label class="layui-form-label"><span style="color:red;">*</span>教室ID</label>
            <div class="layui-input-block">
                <input type="text" name="classroomid" autocomplete="off" class="layui-input" id="classroomid" lay-verify="required">
            </div>
        </div> -->
        
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color:red;">*</span>教室名称</label>
            <div class="layui-input-block">
                <input type="text" name="classroom" autocomplete="off" class="layui-input" id="classroom" lay-verify="required">
            </div>
        </div>
		<div class="layui-form-item">
			<div class="layui-input-block" style="text-align: center;">
				<button type="button" class="layui-btn" lay-submit id="doSubmitAdd" lay-filter="doSubmitAdd"><i class="layui-icon">&#xe654;</i>新增</button>
				<!-- <button type="reset" class="layui-btn layui-btn-warm" ><i class="layui-icon">&#xe669;</i>重置</button> -->
			</div>
		</div>
	</form>
</div>
<!-- 新增弹出层结束-->

<!-- 修改弹出层开始 -->
<div style="display:none;padding:10px" id="saveDiv">
	<form action="" method="post" class="layui-form" id="dataFrm1" lay-filter="dataFrm">
        <div class="layui-form-item">
			<label class="layui-form-label"><span style="color:red;">*</span>教学楼</label>
			<div class="layui-input-block">
				<input type="text" name="tbuildid" autocomplete="off" class="layui-input" id="tbuild2" disabled="disabled" lay-verify="required">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label"><span style="color:red;">*</span>教室ID</label>
			<div class="layui-input-block">
				<input type="text" name="tbuildid" autocomplete="off" class="layui-input" id="classroom3" disabled="disabled" lay-verify="required">
			</div>
		</div>

        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color:red;">*</span>教室名称</label>
            <div class="layui-input-block">
                <input type="text" name="classroom" autocomplete="off" class="layui-input" id="classroom2" lay-verify="required">
            </div>
        </div>

		<div class="layui-form-item">
			<div class="layui-input-block" style="text-align: center;">
				<button type="button" class="layui-btn" lay-submit id="doSubmitSave" lay-filter="doSubmitSave"><i class="layui-icon">&#xe654;</i>保存</button>
				<!-- <button type="reset" class="layui-btn layui-btn-warm" ><i class="layui-icon">&#xe669;</i>重置</button> -->
			</div>
		</div>
	</form>
</div>
<!-- 修改弹出层结束 -->
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="classroomMag2.js"></script>
<script type="text/javascript" src="../../js/leftnav.js"></script> <!--左侧导航栏-->
</body>
</html>
